package com.cheyun.netsalev3.bean.drive

import androidx.databinding.BaseObservable
import androidx.databinding.Bindable
import com.cheyun.netsalev3.BR
import java.io.Serializable

data class DriveListInfo(
        val arrivetime: String,
        val cancelreservetime: String,
        val channel: String,
        val dateline: String,
        val driveetime: String,
        val drivestime: String,
        val id: Int,
        val invalidtime: String,
        val phone: String,
        val realseries: String,
        val realseriesname: String,
        val realspec: String,
        val realspecname: String,
        val reserveseries: String,
        val reserveseriesname: String,
        val reservespec:String,
        val reservespecname:String,
        val reservetime: String,
        var state: Int,
        val statename: String,
        val tid: String,
        val uname: String,
        var sex:Int,
        var rid:Int,
        val drivename:String,
        val drivingnum:String,
        val isreserve:String,
        val licence:String,
        val ownername:String,
        val agreement:String,
        val reserve_day:String,
        val reserve_stime:String,
        val reserve_etime:String,
        val reservehalf:List<String>,
        val drivetype:String,
        val owneruid:String
): Serializable, BaseObservable() {
    var reservehalfStr = ""

    @get:Bindable
    var isreservename: String = ""
        set(isfocus) {
            field = isfocus
            notifyPropertyChanged(BR.isreservename)
        }

    @get:Bindable
    var drivetypename: String = ""
        set(isfocus) {
            field = isfocus
            notifyPropertyChanged(BR.drivetypename)
        }
}